//
//  LRAccount.m
//  LRAccount
//
//  Created by dev on 2018/7/30.
//  Copyright © 2018年 武汉伴悦科技. All rights reserved.
//

#import "LRAccount.h"
static LRAccount *account = nil;
@interface LRAccount()
@property (nonatomic,strong) LRAccountPage *page;

@property (nonatomic,strong) LRAccountUser *user;

@end

@implementation LRAccount
+(LRAccount *)sharedInstance{
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        account = [[self alloc] init];
        //account.Page=[[LRAccountPage alloc]init];
    });
    
    return account;
}

+(LRAccountPage *)Page
{
    return [LRAccount sharedInstance].page;
    
}

+(LRAccountUser *)User
{
    return [LRAccount sharedInstance].user;
    
}

-(LRAccountPage *)page
{
    if(!_page)
    {
        LRAccountPage *page=[[LRAccountPage alloc]init];
        _page=page;
        
    }
    
    return _page;
    
}
@end
